﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.WebPages;
using ShopB2C.Core.Entities;
using ShopB2C.Core;
using ShopB2C.Core.Enums;
using ShopB2C.Business.EFCodes;

namespace ShopB2C.Website.Controllers {
    public class TestController : BaseController {
        //
        // GET: /Test/

        public ActionResult Index() {

            EFClassifyContext db = new EFClassifyContext();
            
            
            

            PagerParams pagerParams = new PagerParams() {
                RecordCount = 10000,
                PagerType = PagerType.EntireAndSkip,
                Url = Url.Action("Index"),
                PageIndex = Request.QueryString["p"].AsInt(1),
                PageSize = Request.QueryString["s"].AsInt(10)
            };
            this.ViewBag.PagerParams = pagerParams;

            return View();
        }

        public ActionResult Aspx() {
            return View();
        }

    }
}
